package com.boot.dog.entities.pojo;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.boot.dog.entities.base.BasePojo;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: MaxLv
 * @Date: 2019/12/2
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tbl_permission")
public class Permission extends BasePojo {

    private static final long serialVersionUID = 1L;

    @TableField(value = "name")
    private String name;

    @TableField(value = "level")
    private Integer level;

    @TableField(value = "type")
    private Integer type;

    @TableField(value = "title")
    private String title;

    @TableField(value = "path")
    private String path;

    @TableField(value = "component")
    private String component;

    @TableField(value = "icon")
    private String icon;

    @TableField(value = "button_type")
    private String buttonType;

    @TableField(value = "parent_id")
    private Integer parentId;

    @TableField(value = "sort_order", numericScale = "2")
    private BigDecimal sortOrder;

    @TableField(value = "status")
    private Integer status;

    @TableField(exist = false)
    private List<Permission> children;

    @TableField(exist = false)
    private List<String> permTypes;

    @TableField(exist = false)
    private Boolean expand = true;

    @TableField(exist = false)
    private Boolean checked = false;

    @TableField(exist = false)
    private Boolean selected = false;

}
